const state = {
	isFlash: false
}

const mutations = {
	SET_FOCUS: (state, data) => {
		state.isFlash = data
	}
}

const actions = {
	// 是否在播放页面
	goFlash({ commit }, data) {
		return new Promise((resolve, reject) => {
			commit('SET_FOCUS', data)
		})
	}
}

export default {
	namespaced: true,
	state,
	mutations,
	actions
}
